#include <iostream>
#include <cstring>
using namespace std;

class Point
{
public:
    int x;
    Point(int x) : x{x} {}
    operator bool()
    {
        if (x == 3)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
};

int main()
{
    // Point p1{1};
    Point p1{3};
    if (p1)
    {
        cout << "p1 is true" << endl;
    }
    else
    {
        cout << "p1 is false" << endl;
    }
}
